<%@page import="cn.jsj.hzu.qm.facecloud.ciuser.pojo.Cilab"%>
<%@page import="cn.jsj.hzu.qm.facecloud.ciuser.pojo.Ciuser"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<%
Ciuser ciuser = (Ciuser) request.getSession().getAttribute("ciuser");
if (ciuser == null) {
	response.sendRedirect("../errorPage/toLoginErrorPage.html");
	return;
}

Cilab cilab = (Cilab)request.getAttribute("cilab");
if(cilab == null){
	response.sendError(568, "noCilab");
	return;
}else{
	pageContext.setAttribute("cilab", cilab);
}
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>No Login Data</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>login successfully</title>
<link rel="stylesheet" href="../css/style.default.css" type="text/css" />
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="../js/baseServerLink.js" type="text/javascript"
	charset="utf-8"></script>

<style>
.redAlert {
	color: red;
	animation: twinkle 1s infinite alternate;
}

@
keyframes twinkle { 0%{
	opacity: 0.8;
}

100
%
{
opacity
:
0.2;
}
}
.greenAlert {
	color: green;
}
</style>
<!-- 表格的样式 -->
<style>
td:nth-child(1) {
	text-align: right;
	width: 40%;
}

td:nth-child(2) {
	text-align: left;
	width: 60%;
}
</style>




<style type="text/css">
.my_green_button {
	background-color: #95f04b;
	border: 0;
	border-radius: 20px;
	-moz-border-radius: 20px;
	/* 老的 Firefox */
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #5c8f30;
	border: 1px solid #6eac3a;
}
</style>


<script type="text/javascript">
$(function(){
	$("#available").val(${pageScope.cilab.available});
});
	
</script>
</head>

<body>
	<div class="bodywrapper" id="my_title">
		<div class="topheader orangeborderbottom5">
			<div class="left">
				<h1 class="logo">
					脸<span>云</span>
				</h1>



				<br clear="all" />

			</div>
			<!--left-->

			<div class="right">

				<!--userdata-->
			</div>
			<!--userinfodrop-->
		</div>
		<!--right-->
	</div>
	<!--topheader-->

	<div class="" style="">
		<div class="contentwrapper padding10"
			style="margin: 0 auto; width: 80%; text-align: center;">
			<div class="errorwrapper error403" style="">
				<div class="errorcontent">
					<br />
					<h1>修改实验室信息</h1>
					<h3>update information</h3>


					<form class="stdform" method="post" action="../CilabServlet">
						<input type="text" name="mode" value="31" style="display: none;" />
						<input type="text" name="id" value="${pageScope.cilab.id}" style="display: none;" />
						<br />
						<table border="0" cellspacing="" cellpadding="" width="80%"
							style="">
							<tr>
								<td><span>实验室位置：</span></td>
								<td><input type="text" name="location" id="location"
									class="longinput"  value="${pageScope.cilab.location}"/> <br>
								<span id="sidside" class="desc">实验室位置</span></td>
							</tr>
							<tr>
								<td><span>实验室名（唯一）：</span></td>
								<td><input type="text" name="name" id="name"
									class="longinput" readonly="readonly"  value="${pageScope.cilab.name}"> <br>
								<span id="nameside" class="desc">注册后，不能修改实验室名</span></td>
							</tr>

							<tr>
								<td><span>备注：</span></td>
								<td><input type="text" name="memo" id="memo"
									class="longinput" value="${pageScope.cilab.memo}"> <br>
								<span class="desc">备注</span></td>
							</tr>

							<tr>
								<td><span>账户可用性</span></td>
								<td><select id="available" name="available" 
									style="width: 86%;">
										<option value="1">启用</option>
										<option value="0">禁用</option>
								</select> <br> <span class="desc">若禁用，此实验室将不能签到 </span></td>
							</tr>
						</table>
						
						<br id="br" />
						<div id="uu">
							<button type="submit" id="save" class="stdbtn btn_blue">
								<span style="font-size: larger;">(+)</span><span id="subtext">提交修改</span>
							</button>
						</div>


					</form>
					
				</div>
				<!--errorcontent-->
			</div>
			<!--errorwrapper-->
		</div>

	</div>


	<!--bodywrapper-->
</body>
</html>
